<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				$("a").click(function(){ 
					return window.confirm("真的挑走了？");
					//return false阻止了元素的默认行为
				});
			});
		</script>
	</head>
	<body>
		<a href="https://www.bdqn.cn">bdqn</a>
	</body>
</html>